import datetime
from datetime import date, timedelta


def main(target_date, days):
    target_date = datetime.datetime.strptime(target_date, '%Y-%m-%d')
    while days + 1:
        target_date = target_date + datetime.timedelta(days=1)
        days = days - 1 if 1 <= target_date.isoweekday() <= 5 else days
    return target_date


def target_date(days=0):
    today = date.today()
    return today + timedelta(days=days)


if __name__ == '__main__':
    # print(f"指定结果：{main('2022-10-24', 55)}")
    print(target_date(90))
    pass
